package main1.b_AbstractFactoryModel;

/**
 * Created by newtranx_011 on 2017/9/26.
 */
public class Main {
    public static void main(String[] args) {
        fun();


    }

    public static void fun() {
        SendMailFactory sendMailFactory = new SendMailFactory();
        Sender sender = sendMailFactory.produce();
        sender.Send();

        SendSmsFactory sendSmsFactory = new SendSmsFactory();
        Sender sender1 = sendSmsFactory.produce();
        sender1.Send();
    }
}
